package com.ftg.learn.day10;

/**
 * 超 人
 *
 * @author kangjx
 * @version 1.0
 * @date 2023/8/4 下午4:06
 */
public class SuperMan {

    private static final SuperMan SUPER_MAN = new SuperMan();

    private SuperMan(){}

    public static SuperMan getInstance(){
        return SUPER_MAN;
    }


    public void fly(){
        System.out.println("我可以飞");
    }

    public void swim(){
        System.out.println("我可以游泳");
    }

}
